using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.ComponentModel.DataAnnotations;
using COM.Domain;

namespace SampleApp.Domain.Map
{
    public class SysDeptMap : EntityTypeConfiguration<SysDept>
    {
        public SysDeptMap()
        {
            this.ToTable("exp_t_application_dept");
            this.HasKey(t => t.DeptCode);
            this.Property(t => t.DeptCode).HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);
            this.Property(t => t.DeptCode).HasColumnName("deptcode");
            this.Property(t => t.DeptName).HasColumnName("deptname");
        }
    }
}
